FROM node:18-alpine

WORKDIR /app

COPY package.json ./

# 安装生产环境依赖
RUN npm install --only=production

COPY . .

# 暴露应用程序使用的端口
EXPOSE 5055

ENV REDIS_HOST=redis

# 定义启动命令
CMD  ["npm","run","runtime"] 
# CMD  ["npm","run","runtime"] 